package com.qdlc.p2p.quartz.job;


import javax.annotation.Resource;

import com.qdlc.p2p.biz.service.AccountCashService;
import com.qdlc.p2p.quartz.AbstractJob;

public class UpdateWithdrawStatus extends AbstractJob {

    /** 提现失败 */
    private static int WITH_DRAW_STATUS_FAIL = 2;

    @Resource
    private AccountCashService accountCashService;

    @Override
    protected void process() {
        // 2天内 状态未被更新 说明提现已失败
        int interval = 2 * 24 * 3600 * 1000;
        accountCashService.updateWithdrawStatus(interval,WITH_DRAW_STATUS_FAIL);
    }
}
